@import '~antd/es/style/themes/default.less';
@import '../../index';
@import '~@/assets/stylesheet/common.less';

.@{pro-table-prefix-cls}-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 16px;
  padding-right: 24px;
  box-shadow: 0 0px 6px rgba(71, 119, 231, 0.2);
  background: #fff;
  border-radius: 4px 4px 0 0;
  .pro-button-styles {
    .button-unified-style();
    padding: 0 10px;
  }

  // 与 listtoolbar 配合时产生更好的效果
  .tech-listtoolbar-container {
    padding-right: 0;
    padding-left: 0;
  }
  &-activity-option {
    align-items: center;
    flex: 1;
  }

  &-option {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
  }
  &-default-search-style {
    display: inline-block;
    vertical-align: top;
    .ant-input-search-enter-button .ant-input-wrapper > input {
      border-radius: 4px;
      border: 1px solid #d9d9d9;
    }
    .ant-input-search-enter-button input + .ant-input-group-addon {
      padding-left: 12px;
      .ant-btn {
        background-color: #17d08c;
        border-color: #17d08c;
        color: #fff;
        &:hover {
          background-color: #5fd2a8;
          border-color: #5fd2a8;
          color: #fff;
        }
      }
    }
  }

  &-item-icon {
    margin-left: 16px;
    font-size: 16px;
    cursor: pointer;
    &:first-child {
      margin-left: 8px;
    }
  }

  &-title {
    // flex: 1;
    color: @label-color;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    opacity: 0.85;
  }
}

@media (max-width: 575px) {
  .@{pro-table-prefix-cls}-toolbar {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    margin-bottom: 16px;
    margin-left: 16px;
    padding: 0;
    line-height: normal;

    &-option {
      display: flex;
      justify-content: space-between;
      width: 100%;
    }

    &-default-option {
      display: flex;
      flex: 1;
      align-items: center;
      justify-content: flex-end;
    }
  }
}
